package graphics.usb;

import java.awt.Color;
import java.awt.Font;
import java.util.ArrayList;
import java.util.List;

import org.junit.Test;

import graphics.base.Data3D;
import graphics.base.ExploreSTL;

public class StringConvert3DTest {

	@Test
	public void testMultiWord3DUsbHead() {
		List<DrawStringParam> params = new ArrayList<>();
		params.add(new DrawStringParam("胜", Color.BLACK, "黑体", Font.BOLD, 1f));
		params.add(new DrawStringParam("利", Color.BLACK, "黑体", Font.BOLD, 0.5f));
		params.add(new DrawStringParam("资", Color.BLACK, "黑体", Font.BOLD, 0.8f));
		params.add(new DrawStringParam("源", Color.BLACK, "黑体", Font.BOLD, 0.5f));
		params.add(new DrawStringParam("盘", Color.BLACK, "黑体", Font.BOLD, 1f));
		Data3D word3D = StringConvert3D.convert3DDifBottom(params);
		ExploreSTL.generateSTL(StringConvert3D.multiWord3DUsbHead(word3D), "c:/test.stl");
	}

}
